refactor: simplify upload request structure and remove user_id fields #73
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.


Refactor the code upload request interface to use a single unified structure instead
of separate CSV and JSON variants. Remove user_id fields from multiple template types
to simplify the data model and improve API consistency.
Key changes:
🌿 Generated with Fern
Note
Medium Risk
This is a breaking API surface change (type removals and response shape changes) that may require consumer updates and could cause runtime issues if callers still rely on removed fields or the old upload request variants.
Overview
Bumps the TS SDK to
6.0.0and simplifies the Construe code-system upload request type by replacing the prior CSV/JSON discriminated-union types with a singleUploadRequestinterface (with aformatenum) now exported fromconstrue/client/requests, and removes the oldconstrue/types/UploadRequest*exports.Removes
user_idfrom multiple response/template models (agent chat messages/sessions, FHIR provider templates, summary templates, MCP server/tool responses, workflow definitions/responses) and updates docs/examples (reference.md) plus wire tests/fixtures to match the new shapes.Written by Cursor Bugbot for commit 86840a9. This will update automatically on new commits. Configure here.